<div id="masterContent_divContent" class="div">
    <script type="text/javascript">
        //OKR_PersonManager JavaScript

        $(function () {

            $.MvcSheet.Loaded = function () {
                //团队名称改变
                loadGroupType();
                loadGroupShardPerson();
                loadHeadPerson()

                //LoadingAtUser
                //loadAtUser();

                $("#ctl641753").change(function () {
                    loadGroupType();
                    loadHeadPerson();
                })

                $("#ctl64112753").change(function () {
                    loadAtUser();
                })

                //团队类型改变
                $("#ctl833081").change(function () {
                    loadGroupShardPerson();
                })

                //隐藏无用控件
                $("li[title='即同意，流程将继续流转']").hide();
                $("li[title='评论']").hide();
                $("li[title='保存']").hide();
                $("li[title='流程状态']").hide();

                /***
                 * 添加新成员
                 */
                $("#addNewPersonBtn").on("click", function () {
                    var teamName = $.MvcSheetUI.GetControlValue("groupName");
                    var teamType = $.MvcSheetUI.GetControlValue("groupType");
                    $("#groupInfo").text("[" + teamName + "] > 下添加：")
                    $("#addUserModal").modal(true);
                })

                $("#addSharedNewPersonBtn").on("click",function () {
                    var teamName = $.MvcSheetUI.GetControlValue("groupName");
                    $("#shardGroupInfo").text("[" + teamName + "] > 下添加 OKR共享人:")
                    $("#addSharedUserModal").modal(true);
                })

                $("#addHeadPersonHref").on("click",function () {
                    var teamName = $.MvcSheetUI.GetControlValue("groupName");
                    $("#headAtGroupInfo").text("[" + teamName + "] > 下添加 负责人:")
                    $("#addHeadUserModal").modal(true);
                })

                /***
                 * AT添加
                 */
                $("#addNewAtPersonBtn").on("click", function () {
                    var teamName = $.MvcSheetUI.GetControlValue("atGroupName");
                    var teamType = $.MvcSheetUI.GetControlValue("atGroupType");
                    $("#groupAtInfo").text("[" + teamName + "] > [" + teamType + "] 下添加：")
                    $("#addAtUserModal").modal(true);
                })

                $("#addAtSharedNewPersonBtn").on("click",function () {
                    var teamName = $.MvcSheetUI.GetControlValue("atGroupName");
                    $("#shardAtGroupInfo").text("[" + teamName + "] > 下添加 OKR共享人:")
                    $("#addAtSharedUserModal").modal(true);
                })




            }


        })

        //ST团队类型
        function loadGroupType() {
            console.log("ajax load")
            var teamName = $.MvcSheetUI.GetControlValue("groupName");

            var teamTypeElem = $.MvcSheetUI.GetElement("PersonManagerList").SheetGridView();

            if ("" != teamName) {
                var param = {};
                param.ServiceCode = "okrManagerDatabase";//业务服务编码
                param.RunMethod = "findUserByGroupName";//方法编码

                var data = [];

                var groupNameObj = {};
                groupNameObj.LogicType = 14;
                groupNameObj.ItemValue = teamName;
                groupNameObj.ItemName = "tid";
                groupNameObj.LogicTypeString = "ShortString";
                data.push(groupNameObj);

                var uidObj = {};
                uidObj.LogicType = 14;
                uidObj.ItemValue = "abcdefg";
                uidObj.ItemName = "uid";
                uidObj.LogicTypeString = "ShortString";
                data.push(uidObj);

                param.InParams = data;

                $.ajax({
                    url: $.MvcSheetUI.PortalRoot + "/BizService/GetMethodReturnList",
                    type: 'POST',
                    data: {formData: JSON.stringify(param)},
                    dataType: 'json',
                    async: false,
                    success: function (data) {
                        //清空表
                        if (IsMobile) {
                            $("div[data-datafield='PersonManagerList']").find(".delete").click()
                        } else {
                            if (teamTypeElem.RowCount != 0) {
                                teamTypeElem._Clear();
                            }
                        }
                        console.log(data);
                        //录入数据
                        for (var j = 0; j < data.Extend.length; j++) {

                            for (var i = 0; i < data.Extend[j].ItemValue.length - 1; i++) {
                                //添加行
                                if (IsMobile) {
                                    teamTypeElem.addbtnBottom.click();
                                } else {
                                    teamTypeElem.addbtn.click();
                                }
                                //设置值
                                $.MvcSheetUI.SetControlValue('PersonManagerList.userBaseId', data.Extend[j].ItemValue[(i + 1)][1], (i + 1));
                                $.MvcSheetUI.SetControlValue('PersonManagerList.byGroupName', data.Extend[j].ItemValue[(i + 1)][2], (i + 1));
                                $.MvcSheetUI.SetControlValue('PersonManagerList.userNameText', data.Extend[j].ItemValue[(i + 1)][4], (i + 1));

                                var arrayData = new Array((data.Extend[j].ItemValue[(i + 1)][2]).toString()
                                    ,(data.Extend[j].ItemValue[(i + 1)][4]).toString());
                                console.log(arrayData)
                                var domElemB = document.createElement("a");
                                domElemB.innerText = "删除";
                                domElemB.href = "javascript:delUserClick('" + arrayData + "')";
                                $("div[data-datafield='PersonManagerList.operator']")[i].parentElement.append(domElemB);
                            }

                        }


                    }
                });//ajax end

            }
        }
        //ST团队OKR共享人
        function loadGroupShardPerson() {
            console.log("ajax load")
            var teamType = $.MvcSheetUI.GetControlValue("groupName");

            var teamTypeElem = $.MvcSheetUI.GetElement("SharedPerson").SheetGridView();

            if ("" != teamType) {
                var param = {};
                param.ServiceCode = "okrManagerDatabase";//业务服务编码
                param.RunMethod = "findSharedUserByGroupName";//方法编码

                var data = [];

                var groupNameObj = {};
                groupNameObj.LogicType = 14;
                groupNameObj.ItemValue = teamType;
                groupNameObj.ItemName = "tid";
                groupNameObj.LogicTypeString = "ShortString";
                data.push(groupNameObj);


                param.InParams = data;

                $.ajax({
                    url: $.MvcSheetUI.PortalRoot + "/BizService/GetMethodReturnList",
                    type: 'POST',
                    data: {formData: JSON.stringify(param)},
                    dataType: 'json',
                    async: false,
                    success: function (data) {
                        //清空表
                        if (IsMobile) {
                            $("div[data-datafield='SharedPerson']").find(".delete").click()
                        } else {
                            if (teamTypeElem.RowCount != 0) {
                                teamTypeElem._Clear();
                            }
                        }
                        console.log(data);
                        //录入数据
                        for (var j = 0; j < data.Extend.length; j++) {

                            for (var i = 0; i < data.Extend[j].ItemValue.length - 1; i++) {
                                //添加行
                                if (IsMobile) {
                                    teamTypeElem.addbtnBottom.click();
                                } else {
                                    teamTypeElem.addbtn.click();
                                }
                                //设置值
                                $.MvcSheetUI.SetControlValue('SharedPerson.userBaseId', data.Extend[j].ItemValue[(i + 1)][2], (i + 1));
                                $.MvcSheetUI.SetControlValue('SharedPerson.byGroupName', data.Extend[j].ItemValue[(i + 1)][3], (i + 1));
                                $.MvcSheetUI.SetControlValue('SharedPerson.userNameText', data.Extend[j].ItemValue[(i + 1)][1], (i + 1));
                                var arrayData = new Array((data.Extend[j].ItemValue[(i + 1)][1]).toString()
                                    , (data.Extend[j].ItemValue[(i + 1)][3]).toString());
                                console.log(arrayData)
                                var domElemB = document.createElement("a");
                                domElemB.innerText = "删除";
                                domElemB.href = "javascript:delSharedUserClick('" + arrayData + "')";
                                $("div[data-datafield='SharedPerson.operator']")[i].parentElement.append(domElemB);
                            }

                        }


                    }
                });//ajax end

            }
        }
        //ST团队负责人
        function loadHeadPerson() {
            console.log("ajax load headPerson")
            var teamType = $.MvcSheetUI.GetControlValue("groupName");

            var headFormElem = $.MvcSheetUI.GetElement("atHeadForm").SheetGridView();

            if ("" != teamType) {
                var param = {};
                param.ServiceCode = "okrManagerDatabase";//业务服务编码
                param.RunMethod = "findStHeadPerson";//方法编码

                var data = [];

                var groupNameObj = {};
                groupNameObj.LogicType = 14;
                groupNameObj.ItemValue = teamType;
                groupNameObj.ItemName = "groupType";
                groupNameObj.LogicTypeString = "ShortString";
                data.push(groupNameObj);


                param.InParams = data;

                $.ajax({
                    url: $.MvcSheetUI.PortalRoot + "/BizService/GetMethodReturnList",
                    type: 'POST',
                    data: {formData: JSON.stringify(param)},
                    dataType: 'json',
                    async: false,
                    success: function (data) {
                        //清空表
                        if (IsMobile) {
                            $("div[data-datafield='atHeadForm']").find(".delete").click()
                        } else {
                            if (headFormElem.RowCount != 0) {
                                headFormElem._Clear();
                            }
                        }
                        console.log(data);
                        //录入数据
                        for (var j = 0; j < data.Extend.length; j++) {

                            for (var i = 0; i < data.Extend[j].ItemValue.length - 1; i++) {
                                //添加行
                                if (IsMobile) {
                                    headFormElem.addbtnBottom.click();
                                } else {
                                    headFormElem.addbtn.click();
                                }
                                //设置值
                                $.MvcSheetUI.SetControlValue('atHeadForm.headPersonNameText', data.Extend[j].ItemValue[(i + 1)][1], (i + 1));
                                $.MvcSheetUI.SetControlValue('atHeadForm.headPersonId', data.Extend[j].ItemValue[(i + 1)][2], (i + 1));

                                var domElemB = document.createElement("a");
                                domElemB.innerText = "删除";
                                domElemB.href = "javascript:delHeadUserClick('" + data.Extend[j].ItemValue[(i + 1)][2] + "')";
                                $("div[data-datafield='atHeadForm.headOperator']")[i].parentElement.append(domElemB);
                            }

                        }


                    }
                });//ajax end

            }
        }
        //ST删除共享人
        function delSharedUserClick(data) {
            var nowData = data.toString().split(',');
            var message = "确定删除 '" + nowData[1] + "'组织下 '" + nowData[0] + "' 吗 ?";
            console.log(message);
            swal(message, {
                buttons: {
                    cancel: "取消",
                    confim: "确认",
                },
            }).then((value) => {
                    switch (value) {
                        case "confim":
                            var param = {};
                            param.ServiceCode = "okrManagerDatabase";//业务服务编码
                            param.RunMethod = "delSharedUserByName";//方法编码

                            var data = [];

                            var userData = {};
                            userData.LogicType = 14;
                            userData.ItemValue = nowData[0];
                            userData.ItemName = "uname";
                            userData.LogicTypeString = "ShortString";
                            data.push(userData);

                            var departmentData = {};
                            departmentData.LogicType = 14;
                            departmentData.ItemValue = nowData[1];
                            departmentData.ItemName = "tid";
                            departmentData.LogicTypeString = "ShortString";
                            data.push(departmentData);

                            param.InParams = data;

                            $.ajax({
                                url: $.MvcSheetUI.PortalRoot + "/BizService/GetMethodReturnList",
                                type: 'POST',
                                dataType: 'JSON',
                                data: {formData: JSON.stringify(param)},
                                async: false,
                                success: function (data) {
                                    if (data.Success) {
                                        swal({
                                            title: "已执行,用户已移除",
                                            icon: "success"
                                        }).then(() => {
                                            location.reload();
                                        })
                                    } else {
                                        swal("异常", "数据异常，请联系管理员", "error");
                                    }
                                }
                            })
                    }
                }
            )

        }
        //ST添加共享人
        function addSharedUserClick() {
            var uids = $.MvcSheetUI.GetControlValue("addSharedUserElem");
            var teamName = $.MvcSheetUI.GetControlValue("groupName");
            //添加
            var successCount = 0;
            if ("" != teamName) {
                swal("添加共享人到组织 [" + teamName + "]吗?", {
                    buttons: {
                        cancel: "取消",
                        confim: "确认",
                    },
                }).then((value) => {
                        switch (value) {
                            case "confim":
                                for (var i = 0; i < uids.length; i++) {
                                    var nowUid = uids[i].toString();
                                    console.log("insert:" + nowUid)
                                    var param = {};
                                    param.ServiceCode = "okrManagerDatabase";//业务服务编码
                                    param.RunMethod = "createSharedNewUser";//方法编码

                                    var data = [];

                                    var userData = {};
                                    userData.LogicType = 14;
                                    userData.ItemValue = nowUid;
                                    userData.ItemName = "uid";
                                    userData.LogicTypeString = "ShortString";
                                    data.push(userData);

                                    var departmentData = {};
                                    departmentData.LogicType = 14;
                                    departmentData.ItemValue = teamName;
                                    departmentData.ItemName = "tid";
                                    departmentData.LogicTypeString = "ShortString";
                                    data.push(departmentData);

                                    param.InParams = data;

                                    $.ajax({
                                        url: $.MvcSheetUI.PortalRoot + "/BizService/GetMethodReturnList",
                                        type: 'POST',
                                        dataType: 'JSON',
                                        data: {formData: JSON.stringify(param)},
                                        async: false,
                                        success: function (data) {
                                            if (data.Success) {
                                                successCount++;
                                                if (successCount == uids.length) {
                                                    swal({
                                                        title: "用户已添加完毕",
                                                        icon: "success"
                                                    }).then(() => {
                                                        location.reload();
                                                    })
                                                }
                                            } else {
                                                swal("erro", "系统异常", "error");
                                            }
                                        }
                                    })
                                }
                                break;
                        }
                    }
                )
            } else {
                swal("erro", "请选择用户", "error");
            }
        }

        //将用户从组织中移除
        function delUserClick(data) {
            var nowData = data.toString().split(',');
            var message = "确定删除 '" + nowData[0] +" 组织下 '" + nowData[1] + "' 吗 ?";
            console.log(message);
            swal(message, {
                buttons: {
                    cancel: "取消",
                    confim: "确认",
                },
            }).then((value) => {
                    switch (value) {
                        case "confim":
                            var param = {};
                            param.ServiceCode = "okrManagerDatabase";//业务服务编码
                            param.RunMethod = "delUserByName";//方法编码

                            var data = [];

                            var userData = {};
                            userData.LogicType = 14;
                            userData.ItemValue = nowData[1];
                            userData.ItemName = "uname";
                            userData.LogicTypeString = "ShortString";
                            data.push(userData);

                            var departmentData = {};
                            departmentData.LogicType = 14;
                            departmentData.ItemValue = nowData[0];
                            departmentData.ItemName = "tid";
                            departmentData.LogicTypeString = "ShortString";
                            data.push(departmentData);

                            param.InParams = data;

                            $.ajax({
                                url: $.MvcSheetUI.PortalRoot + "/BizService/GetMethodReturnList",
                                type: 'POST',
                                dataType: 'JSON',
                                data: {formData: JSON.stringify(param)},
                                async: false,
                                success: function (data) {
                                    if (data.Success) {
                                        swal({
                                            title: "已执行,用户已移除",
                                            icon: "success"
                                        }).then(() => {
                                            location.reload();
                                        })
                                    } else {
                                        swal("异常", "数据异常，请联系管理员", "error");
                                    }
                                }
                            })
                    }
                }
            )
        }

        //将负责人从组织中删除
        function delHeadUserClick(data) {
            var nowGroupType=$.MvcSheetUI.GetControlValue("groupName");
            var userId=data.toString();
            var message = "确定删除当前负责人吗 ?";
            console.log(message);
            swal(message, {
                buttons: {
                    cancel: "取消",
                    confim: "确认",
                },
            }).then((value) => {
                    switch (value) {
                        case "confim":
                            var param = {};
                            param.ServiceCode = "okrManagerDatabase";//业务服务编码
                            param.RunMethod = "delHeadPersonByGroupName";//方法编码

                            var data = [];

                            var userData = {};
                            userData.LogicType = 14;
                            userData.ItemValue = userId;
                            userData.ItemName = "userId";
                            userData.LogicTypeString = "ShortString";
                            data.push(userData);

                            var departmentData = {};
                            departmentData.LogicType = 14;
                            departmentData.ItemValue = nowGroupType;
                            departmentData.ItemName = "groupType";
                            departmentData.LogicTypeString = "ShortString";
                            data.push(departmentData);

                            param.InParams = data;

                            $.ajax({
                                url: $.MvcSheetUI.PortalRoot + "/BizService/GetMethodReturnList",
                                type: 'POST',
                                dataType: 'JSON',
                                data: {formData: JSON.stringify(param)},
                                async: false,
                                success: function (data) {
                                    if (data.Success) {
                                        swal({
                                            title: "已执行,用户已移除",
                                            icon: "success"
                                        }).then(() => {
                                            location.reload();
                                        })
                                    } else {
                                        swal("异常", "数据异常，请联系管理员", "error");
                                    }
                                }
                            })
                    }
                }
            )
        }

        //添加一个新用户
        function addUserBtnClick() {
            var uids = $.MvcSheetUI.GetControlValue("addUserNameElem");
            var teamName = $.MvcSheetUI.GetControlValue("groupName");
            //添加
            var successCount = 0;


            if ("" != teamName) {
                swal("添加用户到组织 [" + teamName + "] 吗?", {
                    buttons: {
                        cancel: "取消",
                        confim: "确认",
                    },
                }).then((value) => {
                        switch (value) {
                            case "confim":
                                for (var i = 0; i < uids.length; i++) {
                                    var nowUid = uids[i].toString();
                                    console.log("insert:" + nowUid)
                                    var param = {};
                                    param.ServiceCode = "okrManagerDatabase";//业务服务编码
                                    param.RunMethod = "createNewUser";//方法编码

                                    var data = [];

                                    var userData = {};
                                    userData.LogicType = 14;
                                    userData.ItemValue = nowUid;
                                    userData.ItemName = "uid";
                                    userData.LogicTypeString = "ShortString";
                                    data.push(userData);

                                    var departmentData = {};
                                    departmentData.LogicType = 14;
                                    departmentData.ItemValue = teamName;
                                    departmentData.ItemName = "tid";
                                    departmentData.LogicTypeString = "ShortString";
                                    data.push(departmentData);

                                    param.InParams = data;

                                    $.ajax({
                                        url: $.MvcSheetUI.PortalRoot + "/BizService/GetMethodReturnList",
                                        type: 'POST',
                                        dataType: 'JSON',
                                        data: {formData: JSON.stringify(param)},
                                        async: false,
                                        success: function (data) {
                                            if (data.Success) {
                                                successCount++;
                                                if (successCount == uids.length) {
                                                    swal({
                                                        title: "用户已添加完毕",
                                                        icon: "success"
                                                    }).then(() => {
                                                        location.reload();
                                                    })
                                                }
                                            } else {
                                                swal("erro", "系统异常", "error");
                                            }
                                        }
                                    })
                                }
                                break;
                        }
                    }
                )
            } else {
                swal("erro", "请选择用户", "error");
            }


        }

        function addAtHeadUserClick() {
            var uids = $.MvcSheetUI.GetControlValue("addAtHeadPersonElem");
            var teamName = $.MvcSheetUI.GetControlValue("groupName");

            //添加
            var successCount = 0;


            if ("" != teamName) {
                swal("添加用户到组织 [" + teamName + "]吗?", {
                    buttons: {
                        cancel: "取消",
                        confim: "确认",
                    },
                }).then((value) => {
                        switch (value) {
                            case "confim":
                                for (var i = 0; i < uids.length; i++) {
                                    var nowUid = uids[i].toString();
                                    console.log("ST headPersonInsert:" + nowUid)
                                    var param = {};
                                    param.ServiceCode = "okrManagerDatabase";//业务服务编码
                                    param.RunMethod = "addSTHeadPerson";//方法编码

                                    var data = [];

                                    var userData = {};
                                    userData.LogicType = 14;
                                    userData.ItemValue = nowUid;
                                    userData.ItemName = "userId";
                                    userData.LogicTypeString = "ShortString";
                                    data.push(userData);

                                    var departmentData = {};
                                    departmentData.LogicType = 14;
                                    departmentData.ItemValue = teamName;
                                    departmentData.ItemName = "groupType";
                                    departmentData.LogicTypeString = "ShortString";
                                    data.push(departmentData);

                                    param.InParams = data;

                                    $.ajax({
                                        url: $.MvcSheetUI.PortalRoot + "/BizService/GetMethodReturnList",
                                        type: 'POST',
                                        dataType: 'JSON',
                                        data: {formData: JSON.stringify(param)},
                                        async: false,
                                        success: function (data) {
                                            if (data.Success) {
                                                successCount++;
                                                if (successCount == uids.length) {
                                                    swal({
                                                        title: "用户已添加完毕",
                                                        icon: "success"
                                                    }).then(() => {
                                                        location.reload();
                                                    })
                                                }
                                            } else {
                                                swal("erro", "系统异常", "error");
                                            }
                                        }
                                    })
                                }
                                break;
                        }
                    }
                )
            } else {
                swal("erro", "请选择用户", "error");
            }
        }


        /***
         * AT数据处理
         */
        function loadAtUser() {
            console.log("ajax load")
            var teamName = $.MvcSheetUI.GetControlValue("atGroupName");
            var teamType= $.MvcSheetUI.GetControlValue("atGroupType");

            var teamTypeElem = $.MvcSheetUI.GetElement("AtPersonManagerList").SheetGridView();

            if ("" != teamType && null != teamType) {
                var param = {};
                param.ServiceCode = "okrManagerDatabase";//业务服务编码
                param.RunMethod = "findAtTeamUser";//方法编码

                var data = [];

                var groupNameObj = {};
                groupNameObj.LogicType = 14;
                groupNameObj.ItemValue = teamName;
                groupNameObj.ItemName = "teamName";
                groupNameObj.LogicTypeString = "ShortString";
                data.push(groupNameObj);

                var groupTypeObj = {};
                groupTypeObj.LogicType = 14;
                groupTypeObj.ItemValue = teamType;
                groupTypeObj.ItemName = "teamType";
                groupTypeObj.LogicTypeString = "ShortString";
                data.push(groupTypeObj);

                var uidObj = {};
                uidObj.LogicType = 14;
                uidObj.ItemValue = "null";
                uidObj.ItemName = "uid";
                uidObj.LogicTypeString = "ShortString";
                data.push(uidObj);


                param.InParams = data;

                $.ajax({
                    url: $.MvcSheetUI.PortalRoot + "/BizService/GetMethodReturnList",
                    type: 'POST',
                    data: {formData: JSON.stringify(param)},
                    dataType: 'json',
                    async: false,
                    success: function (data) {
                        //清空表
                        if (IsMobile) {
                            $("div[data-datafield='AtPersonManagerList']").find(".delete").click()
                        } else {
                            if (teamTypeElem.RowCount != 0) {
                                teamTypeElem._Clear();
                            }
                        }
                        console.log(data);
                        //录入数据
                        for (var j = 0; j < data.Extend.length; j++) {

                            for (var i = 0; i < data.Extend[j].ItemValue.length - 1; i++) {
                                //添加行
                                if (IsMobile) {
                                    teamTypeElem.addbtnBottom.click();
                                } else {
                                    teamTypeElem.addbtn.click();
                                }
                                //设置值
                                $.MvcSheetUI.SetControlValue('AtPersonManagerList.userBaseId', data.Extend[j].ItemValue[(i + 1)][4], (i + 1));
                                $.MvcSheetUI.SetControlValue('AtPersonManagerList.byGroupName', data.Extend[j].ItemValue[(i + 1)][1], (i + 1));
                                $.MvcSheetUI.SetControlValue('AtPersonManagerList.userNameText', data.Extend[j].ItemValue[(i + 1)][3], (i + 1));
                                $.MvcSheetUI.SetControlValue('AtPersonManagerList.byGroupType', data.Extend[j].ItemValue[(i + 1)][2], (i + 1));
                                var arrayData = new Array((data.Extend[j].ItemValue[(i + 1)][1]).toString()
                                    , (data.Extend[j].ItemValue[(i + 1)][2]).toString(), (data.Extend[j].ItemValue[(i + 1)][4]).toString());
                                console.log(arrayData)
                                var domElemB = document.createElement("a");
                                domElemB.innerText = "删除";
                                domElemB.href = "javascript:delAtUserClick('" + arrayData + "')";
                                $("div[data-datafield='AtPersonManagerList.operator']")[i].parentElement.append(domElemB);
                            }

                        }


                    }
                });//ajax end

            }
        }

    </script>
    <div style="text-align: center;" class="DragContainer">
        <label id="lblTitle" class="panel-title">OKR成员名单管理</label>
    </div>
    <div class="panel-body sheetContainer">
        <!--<div class="nav-icon fa fa-chevron-right bannerTitle">
            <label id="divBasicInfo" data-en_us="Basic information">基本信息</label>
        </div>-->
        <hr>
        <div class="divContent">
            <div class="row">
                <div id="divFullNameTitle" class="col-md-2">
                    <label id="lblFullNameTitle" data-type="SheetLabel" data-datafield="Originator.UserName" data-en_us="Originator" data-bindtype="OnlyVisiable" style="">发起人</label>
                </div>
                <div id="divFullName" class="col-md-4">
                    <label id="lblFullName" data-type="SheetLabel" data-datafield="Originator.UserName" data-bindtype="OnlyData" style=""></label>
                </div>
                <div id="divOriginateDateTitle" class="col-md-2">
                    <label id="lblOriginateDateTitle" data-type="SheetLabel" data-datafield="OriginateTime" data-en_us="Originate Date" data-bindtype="OnlyVisiable" style="">发起时间</label>
                </div>
                <div id="divOriginateDate" class="col-md-4">
                    <label id="lblOriginateDate" data-type="SheetLabel" data-datafield="OriginateTime" data-bindtype="OnlyData" style="" class=""></label>
                </div>
            </div>
            <div class="row">
                <div id="divOriginateOUNameTitle" class="col-md-2">
                    <label id="lblOriginateOUNameTitle" data-type="SheetLabel" data-datafield="Originator.OUName" data-en_us="Originate OUName" data-bindtype="OnlyVisiable" style="">所属组织</label>
                </div>
                <div id="divOriginateOUName" class="col-md-4">
                    <!--					<label id="lblOriginateOUName" data-type="SheetLabel" data-datafield="Originator.OUName" data-bindtype="OnlyData">
    <span class="OnlyDesigner">Originator.OUName</span>
                        </label>-->
                    <select data-datafield="Originator.OUName" data-type="SheetOriginatorUnit" id="ctlOriginaotrOUName" class="" style=""> </select>
                </div>
                <div id="divSequenceNoTitle" class="col-md-2">
                    <label id="lblSequenceNoTitle" data-type="SheetLabel" data-datafield="SequenceNo" data-en_us="SequenceNo" data-bindtype="OnlyVisiable" style="">流水号</label>
                </div>
                <div id="divSequenceNo" class="col-md-4">
                    <label id="lblSequenceNo" data-type="SheetLabel" data-datafield="SequenceNo" data-bindtype="OnlyData" style="" class=""></label>
                </div>
            </div>
        </div>
        <!--<div class="nav-icon fa  fa-chevron-right bannerTitle">
            <label id="divSheetInfo" data-en_us="Sheet information">表单信息</label>
        </div>-->
        <hr>
        <div class="divContent">
            <div class="row">
                <div id="div525864" class="col-md-12" colspan="4">
                    <blockquote style="font-size: 12px;text-indent: 1em">
                        <p> 单击右侧发起部门OKR ，<span style="color: red">
						<a href="http://www.kumhosunny.cn:8099/Portal/StartInstance.html?WorkflowCode=TeamDepartmentOKR">发起 &gt;</a>
					</span> </p>
                    </blockquote>
                    <hr>
                    <blockquote style="font-size: 12px;text-indent: 1em">
                        <p>当前数据与 <span style="color: red">[TeamDepartmentOKR]</span> 团队类型同步</p>
                    </blockquote>
                    <p></p>
                    <hr> </div>
            </div>
        </div>
        <div class="alert alert-success" role="alert">
            <span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
            <span class="sr-only">info:</span> ST_OKR 成员管理
        </div>
        <div class="divContent" id="#">
            <div class="row">
                <div id="div108196" class="col-md-2"><span id="Label12" data-type="SheetLabel" data-datafield="groupName" style="" class="">团队名称</span> </div>
                <div id="div961077" class="col-md-8">
                    <select data-datafield="groupName" data-type="SheetDropDownList" id="ctl833081" class="form-control input-sm" style="" data-schemacode="okrGroupType" data-querycode="查询团队类型" data-datavaluefield="groupType" data-datatextfield="groupType" data-viewinnewcontainer="true" data-emptyitemtext="Empty" data-queryable="false"> </select>
                </div>
                <div id="sharedButtonSpan" class="col-md-2">
                </div>
            </div>
            <div class="row">
                <div id="div375472" class="col-md-2">
                    <label data-datafield="groupType" data-type="SheetLabel" id="ctl963462" class="" style="">团队</label>
                </div>
                <div id="div270796" class="col-md-8">
                    <select data-datafield="groupType" class="form-control input-sm" data-type="SheetDropDownList" id="ctl641753" style="" data-queryable="false" data-querycode="OKR查询团队名称" data-filter="groupName:tid" data-datavaluefield="groupName" data-datatextfield="groupName" data-schemacode="okrGroupName"></select>
                </div>
                <div id="buttonSpan" class="col-md-2"></div>
            </div>
            <hr>
            <div class="row">
                <div id="div528286" class="col-md-2">
                    <input class="btn btn-default" type="button" value="添加共享人" id="addSharedNewPersonBtn">
                </div>
                <div id="div928988" class="col-md-2">
                    <input class="btn btn-default" type="button" value="添加ST新成员" id="addNewPersonBtn">
                </div>
                <div id="div776877" class="col-md-2">
                    <input class="btn btn-default" type="button" value="添加AT负责人" id="addHeadPersonHref"/>
                </div>
            </div>
            <hr>
            <div class="row tableContent">
                <div id="control1" class="col-md-12">
                    <table class="table table-hover table-condensed" id="Control11" data-datafield="PersonManagerList" data-type="SheetGridView" data-displaysummary="false" data-displaydelete="false" data-displayadd="false">
                        <tbody style="border: 1px solid #6560603b;">
                        <tr class="header">
                            <td id="Control11_SerialNo" class="rowSerialNo"> 序号 </td>
                            <td id="Control11_Header3" data-datafield="PersonManagerList.userNameText" class="">
                                <label id="Control11_Label3" data-datafield="PersonManagerList.userNameText" data-type="SheetLabel" style="">名称文本</label>
                            </td>
                            <td id="Control11_Header4" data-datafield="PersonManagerList.userBaseId" class="">
                                <label id="Control11_Label4" data-datafield="PersonManagerList.userBaseId" data-type="SheetLabel" style="">编码</label>
                            </td>
                            <td id="Control11_Header5" data-datafield="PersonManagerList.byGroupName">
                                <label id="Control11_Label5" data-datafield="PersonManagerList.byGroupName" data-type="SheetLabel" style="">所属组织</label>
                            </td>
                            <td id="Control11_Header7" data-datafield="PersonManagerList.byGroupType">
                                <label id="Control11_Label7" data-datafield="PersonManagerList.byGroupType" data-type="SheetLabel" style="">组织类型</label>
                            </td>
                            <td id="Control11_Header6" data-datafield="PersonManagerList.operator">
                                <label id="Control11_Label6" data-datafield="PersonManagerList.operator" data-type="SheetLabel" style="">操作</label>
                            </td>
                            <td class="rowOption"> 删除 </td>
                        </tr>
                        <tr class="template">
                            <td id="Control11_Option" class="rowOption"> </td>
                            <td data-datafield="PersonManagerList.userNameText">
                                <input id="Control11_ctl3" type="text" data-datafield="PersonManagerList.userNameText" data-type="SheetTextBox" style="" disabled="true"> </td>
                            <td data-datafield="PersonManagerList.userBaseId">
                                <div data-datafield="PersonManagerList.userBaseId" data-type="SheetUser" id="ctl167683" class="" style="" disabled="true"></div>
                            </td>
                            <td data-datafield="PersonManagerList.byGroupName">
                                <input id="Control11_ctl5" type="text" data-datafield="PersonManagerList.byGroupName" data-type="SheetTextBox" style="" disabled="true"> </td>
                            <td data-datafield="PersonManagerList.byGroupType">
                                <input id="Control11_ctl7" type="text" data-datafield="PersonManagerList.byGroupType" data-type="SheetTextBox" style="" disabled="true"> </td>
                            <td data-datafield="PersonManagerList.operator">
                                <div id="Control11_ctl6" data-datafield="PersonManagerList.operator" style=""></div>
                            </td>
                            <td class="rowOption">
                                <a class="delete">
                                    <div class="fa fa-minus"> </div>
                                </a>
                                <a class="insert">
                                    <div class="fa fa-arrow-down"> </div>
                                </a>
                            </td>
                        </tr>
                        <tr class="footer">
                            <td class="rowOption"> </td>
                            <td data-datafield="PersonManagerList.userNameText"> </td>
                            <td data-datafield="PersonManagerList.userBaseId"> </td>
                            <td data-datafield="PersonManagerList.byGroupName"> </td>
                            <td data-datafield="PersonManagerList.byGroupType"> </td>
                            <td data-datafield="PersonManagerList.operator"> </td>
                            <td class="rowOption"> </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
        <div class="alert alert-success" role="alert"> <span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span> <span class="sr-only">info:</span> ST_OKR 共享人管理 </div>
        <div class="divContent">
            <div class="row">
                <div id="title3" class="col-md-12" colspan="4">
                    <table id="ctl439197" data-datafield="SharedPerson" data-type="SheetGridView" class="table table-hover table-condensed" style="" data-displayadd="false" data-displaydelete="false" data-displaysequenceno="false" data-displaysummary="false" data-defaultrowcount="0">
                        <tbody style="border: 1px solid #6560603b;">
                        <tr class="header">
                            <td id="ctl439197_SerialNo" class="rowSerialNo">序号</td>
                            <td id="ctl439197_header0" data-datafield="SharedPerson.userNameText" style="">
                                <label id="ctl439197_Label0" data-datafield="SharedPerson.userNameText" data-type="SheetLabel" style="" class="">名称文本</label>
                            </td>
                            <td id="ctl439197_header1" data-datafield="SharedPerson.userBaseId" style="">
                                <label id="ctl439197_Label1" data-datafield="SharedPerson.userBaseId" data-type="SheetLabel" style="" class="">编码</label>
                            </td>
                            <td id="ctl439197_header2" data-datafield="SharedPerson.byGroupName" style="">
                                <label id="ctl439197_Label2" data-datafield="SharedPerson.byGroupName" data-type="SheetLabel" style="" class="">所属团队</label>
                            </td>
                            <td id="ctl439197_header3" data-datafield="SharedPerson.operator" style="">
                                <label id="ctl439197_Label3" data-datafield="SharedPerson.operator" data-type="SheetLabel" style="" class="">操作</label>
                            </td>
                            <td class="rowOption">删除</td>
                        </tr>
                        <tr class="template">
                            <td></td>
                            <td id="ctl439297_control22" data-datafield="SharedPerson.userNameText" style="">
                                <input type="text" data-datafield="SharedPerson.userNameText" data-type="SheetTextBox" id="ctl439197_contr2l0" style="" class="" disabled="true">
                            </td>
                            <td id="ctl439297_control21" data-datafield="SharedPerson.userBaseId" style="">
                                <div data-datafield="SharedPerson.userBaseId" data-type="SheetUser" id="ctl439197_co2trol1" style=""></div>
                            </td>
                            <td id="ctl432197_control22" data-datafield="SharedPerson.byGroupName" style="" class="">
                                <input type="text" data-datafield="SharedPerson.byGroupName" data-type="SheetTextBox" id="ctl43927_control2" style="" class="" disabled="true"> </td>
                            <td id="ctl439197_control3" data-datafield="SharedPerson.operator" style="">
                                <div id="Control11_ctl26" data-datafield="SharedPerson.operator" style=""></div>
                            </td>
                            <!-- <td class="rowOption">
                                 <a class="delete">
                                     <div class="fa fa-minus"></div>
                                 </a>
                                 <a class="insert">
                                     <div class="fa fa-arrow-down"></div>
                                 </a>
                             </td>-->
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <div class="alert alert-success" role="alert">
        <span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
        <span class="sr-only">info:</span> AT_OKR 负责人成员管理
        <span></span>
    </div>
    <!--At负责人Start-->
    <div class="divContent">
        <div class="row">
            <div id="title4" class="col-md-12" colspan="4">
                <table id="ctl429197" data-datafield="atHeadForm" data-type="SheetGridView" class="table table-hover table-condensed" style="" data-displayadd="false" data-displaydelete="false" data-displaysequenceno="false" data-displaysummary="false" data-defaultrowcount="0">
                    <tbody style="border: 1px solid #6560603b;">
                    <tr class="header">
                        <td id="ctl432197_SerialNo" class="rowSerialNo">序号</td>
                        <td id="ctl432197_header0" data-datafield="atHeadForm.headPersonNameText" style="">
                            <label id="ctl429197_Label0" data-datafield="atHeadForm.headPersonNameText" data-type="SheetLabel" style="" class="">名称文本</label>
                        </td>
                        <td id="ctl429197_header1" data-datafield="atHeadForm.headPersonId" style="">
                            <label id="ctl432197_Label1" data-datafield="atHeadForm.headPersonId" data-type="SheetLabel" style="" class="">编码</label>
                        </td>
                        <td id="ctl439297_header3" data-datafield="atHeadForm.headOperator" style="" class="">
                            <label id="ctl432197_Label3" data-datafield="atHeadForm.headOperator" data-type="SheetLabel" style="" class="">操作</label>
                        </td>
                        <td class="rowOption">删除</td>
                    </tr>
                    <tr class="template">
                        <td></td>
                        <td id="ctl419197_control0" data-datafield="atHeadForm.headPersonNameText" style="">
                            <input type="text" data-datafield="atHeadForm.headPersonNameText" data-type="SheetTextBox" id="ctl439197_control12" style="" class="" disabled="true">
                        </td>
                        <td id="ctl431197_control1" data-datafield="atHeadForm.headPersonId" style="">
                            <div data-datafield="atHeadForm.headPersonId" data-type="SheetUser" id="ctl439197_control22" style="" class=""></div>
                        </td>

                        <td id="ctl419197_control3" data-datafield="atHeadForm.headOperator" style="">
                            <div id="Control12_ctl11" data-datafield="atHeadForm.headOperator" style="" class=""></div>
                        </td>
                        <!-- <td class="rowOption">
                             <a class="delete">
                                 <div class="fa fa-minus"></div>
                             </a>
                             <a class="insert">
                                 <div class="fa fa-arrow-down"></div>
                             </a>
                         </td>-->
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>

    <!--At负责人End-->
    <!--<div class="alert alert-error" role="alert"> <span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span> <span class="sr-only">info:</span> AT_OKR 成员管理 </div>
    &lt;!&ndash;AtForm&ndash;&gt;
    <div class="divContent" id="#">
        <div class="row">
            <div id="div102196" class="col-md-2"><span id="Label13" data-type="SheetLabel" data-datafield="atGroupName" style="" class="">团队名称</span> </div>
            <div id="div921077" class="col-md-8">
                <select data-datafield="atGroupName" data-type="SheetDropDownList" id="ctl8332081" class="form-control input-sm" style="" data-schemacode="atOkrTeamName" data-querycode="ATOKR团队名称" data-datavaluefield="teamName" data-datatextfield="teamName" data-viewinnewcontainer="true" data-emptyitemtext="Empty" data-queryable="false"> </select>
            </div>
            <div id="sharedAtButtonSpan" class="col-md-2">
                <input class="btn btn-default" type="button" value="添加共享人" id="addAtSharedNewPersonBtn">
            </div>
        </div>
        <div class="row">
            <div id="div3754721" class="col-md-2">
                <label data-datafield="atGroupType" data-type="SheetLabel" id="ctl9634621" class="" style="">团队</label>
            </div>
            <div id="div2707961" class="col-md-8">
                <select data-datafield="atGroupType" class="form-control input-sm" data-type="SheetDropDownList" id="ctl64112753" style="" data-queryable="false" data-querycode="ATOKR团队类型" data-filter="atGroupName:teamName" data-datavaluefield="teamType" data-datatextfield="teamType" data-schemacode="atOkrTeamType"></select>
            </div>
            <div id="buttonAtSpan" class="col-md-2">
                <input class="btn btn-default" type="button" value="添加新成员" id="addNewAtPersonBtn"></div>
        </div>
        <div class="row tableContent">
            <div id="control12" class="col-md-12">
                <table class="table table-hover table-condensed" id="Control111" data-datafield="AtPersonManagerList" data-type="SheetGridView" data-displaysummary="false" data-displaydelete="false" data-displayadd="false">
                    <tbody style="border: 1px solid #6560603b;">
                    <tr class="header">
                        <td id="Control11_SerialNo1" class="rowSerialNo"> 序号 </td>
                        <td id="Control11_Header31" data-datafield="AtPersonManagerList.userNameText" class="">
                            <label id="Control11_Label31" data-datafield="AtPersonManagerList.userNameText" data-type="SheetLabel" style="">名称文本</label>
                        </td>
                        <td id="Control11_Header14" data-datafield="AtPersonManagerList.userBaseId" class="">
                            <label id="Control11_Label14" data-datafield="AtPersonManagerList.userBaseId" data-type="SheetLabel" style="">编码</label>
                        </td>
                        <td id="Control11_Header15" data-datafield="AtPersonManagerList.byGroupName">
                            <label id="Control11_Label15" data-datafield="AtPersonManagerList.byGroupName" data-type="SheetLabel" style="">所属组织</label>
                        </td>
                        <td id="Control11_Header17" data-datafield="AtPersonManagerList.byGroupType">
                            <label id="Control11_Label17" data-datafield="AtPersonManagerList.byGroupType" data-type="SheetLabel" style="">组织类型</label>
                        </td>
                        <td id="Control11_Heade16" data-datafield="AtPersonManagerList.operator">
                            <label id="Control11_Label16" data-datafield="AtPersonManagerList.operator" data-type="SheetLabel" style="">操作</label>
                        </td>
                        <td class="rowOption"> 删除 </td>
                    </tr>
                    <tr class="template">
                        <td id="Control12_Option" class="rowOption"> </td>
                        <td data-datafield="AtPersonManagerList.userNameText">
                            <input id="Control12_ctl3" type="text" data-datafield="AtPersonManagerList.userNameText" data-type="SheetTextBox" style="" disabled="true"> </td>
                        <td data-datafield="PersonManagerList.userBaseId">
                            <div data-datafield="AtPersonManagerList.userBaseId" data-type="SheetUser" id="ctl1167683" class="" style="" disabled="true"></div>
                        </td>
                        <td data-datafield="AtPersonManagerList.byGroupName">
                            <input id="Control12_ctl5" type="text" data-datafield="AtPersonManagerList.byGroupName" data-type="SheetTextBox" style="" disabled="true"> </td>
                        <td data-datafield="AtPersonManagerList.byGroupType">
                            <input id="Control12_ctl7" type="text" data-datafield="AtPersonManagerList.byGroupType" data-type="SheetTextBox" style="" disabled="true"> </td>
                        <td data-datafield="AtPersonManagerList.operator">
                            <div id="Control12_ctl6" data-datafield="AtPersonManagerList.operator" style=""></div>
                        </td>
                        <td class="rowOption">
                            <a class="delete">
                                <div class="fa fa-minus"> </div>
                            </a>
                            <a class="insert">
                                <div class="fa fa-arrow-down"> </div>
                            </a>
                        </td>
                    </tr>
                    <tr class="footer">
                        <td class="rowOption"> </td>
                        <td data-datafield="AtPersonManagerList.userNameText"> </td>
                        <td data-datafield="AtPersonManagerList.userBaseId"> </td>
                        <td data-datafield="AtPersonManagerList.byGroupName"> </td>
                        <td data-datafield="AtPersonManagerList.byGroupType"> </td>
                        <td data-datafield="AtPersonManagerList.operator"> </td>
                        <td class="rowOption"> </td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>-->
    <!--ST Modal-->
    <div class="modal fade" id="addUserModal" role="dialog" aria-labelledby="exampleModalLabel">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button>
                    <h5 style="font-size: 14px" class="modal-title" id="exampleModalLabel">添加成员</h5> </div>
                <div class="modal-body">
                    <form>
                        <blockquote style="font-size: 14px;text-indent: 1em;margin: 20px auto;text-align: center;font-weight: bold">
                            <p id="groupInfo"></p>
                        </blockquote>
                        <div class="form-group" style="width: 80%;margin:20px auto">
                            <label for="modalName" class="control-label">姓名:</label>
                            <div data-datafield="addUserNameElem" data-type="SheetUser" id="modalName" class="" style=""></div>
                        </div>
                    </form>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                        <button type="button" class="btn btn-primary" onclick="addUserBtnClick()">添加</button>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="modal fade" id="addSharedUserModal" role="dialog" aria-labelledby="exampleModalLabel">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button>
                    <h5 style="font-size: 14px" class="modal-title" id="sharedModalLabel">添加共享人</h5> </div>
                <div class="modal-body">
                    <form>
                        <blockquote style="font-size: 14px;text-indent: 1em;margin: 20px auto;text-align: center;font-weight: bold">
                            <p id="shardGroupInfo"></p>
                        </blockquote>
                        <div class="form-group" style="width: 80%;margin:20px auto">
                            <label for="modalName" class="control-label">姓名:</label>
                            <div data-datafield="addSharedUserElem" data-type="SheetUser" id="sharedModalName" class="" style=""></div>
                        </div>
                    </form>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                        <button type="button" class="btn btn-primary" onclick="addSharedUserClick()">添加</button>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--AT Modal-->
    <div class="modal fade" id="addAtUserModal" role="dialog" aria-labelledby="exampleModalLabel">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button>
                    <h5 style="font-size: 14px" class="modal-title" id="exampleAtModalLabel">添加成员</h5> </div>
                <div class="modal-body">
                    <form>
                        <blockquote style="font-size: 14px;text-indent: 1em;margin: 20px auto;text-align: center;font-weight: bold">
                            <p id="groupAtInfo"></p>
                        </blockquote>
                        <div class="form-group" style="width: 80%;margin:20px auto">
                            <label for="modalName" class="control-label">姓名:</label>
                            <div data-datafield="addAtUserNameElem" data-type="SheetUser" id="modalAtName" class="" style=""></div>
                        </div>
                    </form>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                        <button type="button" class="btn btn-primary" onclick="addAtUserBtnClick()">添加</button>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="modal fade" id="addAtSharedUserModal" role="dialog" aria-labelledby="exampleModalLabel">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button>
                    <h5 style="font-size: 14px" class="modal-title" id="sharedAtModalLabel">添加共享人</h5> </div>
                <div class="modal-body">
                    <form>
                        <blockquote style="font-size: 14px;text-indent: 1em;margin: 20px auto;text-align: center;font-weight: bold">
                            <p id="shardAtGroupInfo"></p>
                        </blockquote>
                        <div class="form-group" style="width: 80%;margin:20px auto">
                            <label for="modalName" class="control-label">姓名:</label>
                            <div data-datafield="addAtSharedUserElem" data-type="SheetUser" id="sharedAtModalName" class="" style=""></div>
                        </div>
                    </form>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                        <button type="button" class="btn btn-primary" onclick="addAtSharedUserClick()">添加</button>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="modal fade" id="addHeadUserModal" role="dialog" aria-labelledby="exampleModalLabel">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button>
                    <h5 style="font-size: 14px" class="modal-title" id="headAtModalLabel">添加共享人</h5> </div>
                <div class="modal-body">
                    <form>
                        <blockquote style="font-size: 14px;text-indent: 1em;margin: 20px auto;text-align: center;font-weight: bold">
                            <p id="headAtGroupInfo"></p>
                        </blockquote>
                        <div class="form-group" style="width: 80%;margin:20px auto">
                            <label for="modalName" class="control-label">姓名:</label>
                            <div data-datafield="addAtHeadPersonElem" data-type="SheetUser" id="headAtModalName" class="" style=""></div>
                        </div>
                    </form>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                        <button type="button" class="btn btn-primary" onclick="addAtHeadUserClick()">添加</button>
                    </div>
                </div>
            </div>
        </div>
    </div>



    <!-- HTML END-->
</div>
